package com.gtja.beoms.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gtja.beoms.pojo.QwAccountInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;

import java.util.Map;

public interface QwAccountDao extends BaseMapper<QwAccountInfo> {

    /**
     * 查询企业微信账号信息
     * @param params
     * @return
     * @throws DataAccessException
     */
    public QwAccountInfo getAccount(Map<String,Object> params)  throws DataAccessException;

    int createQwAccountInfo(QwAccountInfo qwAccountInfo);

    QwAccountInfo queryQwAccount(@Param("orgId") String orgId);

    int updateQwAccountInfo(QwAccountInfo qwAccountInfo);

    QwAccountInfo queryQwAccountByCorpId(@Param("corpId") String corpId);
}
